package com.u2ds.console.entity.user;

import java.util.Collection;
import java.util.List;

import com.u2ds.core.security.UserLoginInfo;

public class UserAccount implements UserLoginInfo<Long> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2268994005819926212L;

	private Long sid;
	
	private String account;
	
	private String username;
	
	private String password;
	
	private List<String> roles;
	
	private List<String> permissions;

	@Override
	public Long getAccountId() {
		// TODO Auto-generated method stub
		return this.sid;
	}

	@Override
	public String getAccount() {
		// TODO Auto-generated method stub
		return this.account;
	}

	@Override
	public String getUsername() {
		// TODO Auto-generated method stub
		return this.username;
	}

	@Override
	public String getPassword() {
		// TODO Auto-generated method stub
		return this.password;
	}

	@Override
	public Collection<String> getRoles() {
		// TODO Auto-generated method stub
		return this.roles;
	}

	@Override
	public Collection<String> getPermissions() {
		// TODO Auto-generated method stub
		return this.permissions;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	public void setPermissions(List<String> permissions) {
		this.permissions = permissions;
	}

}
